<?php

/**
 * componente actions.
 *
 * @package    Faw
 * @subpackage componente
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class componenteComponents extends sfComponents
{
 /**
  * Executes index action
  *
  * @param sfRequest $request A request object
  */
  public function executeLogin()
  {}
  public function executeDoc()
  {}
  public function executeOption()
  {}
  public function executeSign_in()
  {}
  public function executeDelete_doc()
  {}
  public function executeWelcome()
  {}
  public function executeDocument()
  {}
  public function executeCategory()
  {
    $criteria = new Criteria();
    $criteria->add(TbDetalleUsuarioCategoriaPeer::USUARIO_ID,$this->getUser()->getAttribute('ses_user_id'));
    $list_categoria = TbDetalleUsuarioCategoriaPeer::doSelect($criteria);
    $this->list_categoria = $list_categoria;
  }
  public function executeAcuerdo()
  {
      // REMOVIENDO LA SESSION
      $this->getUser()->getAttributeHolder()->remove('ses_detalle_acuerdo_contacto');
      $this->getUser()->getAttributeHolder()->remove('ses_upd_doc');
      $user = TbUsuarioPeer::retrieveByPK($this->getUser()->getAttribute('ses_user_id'));
      $this->email_user = $user->getCorreo();
  }
  public function executeActa()
  {
      $this->getUser()->getAttributeHolder()->remove('ses_detalle_acta_contacto');
      $this->getUser()->getAttributeHolder()->remove('ses_detalle_acta_tarea');
      $this->getUser()->getAttributeHolder()->remove('ses_upd_doc');

      $user = TbUsuarioPeer::retrieveByPK($this->getUser()->getAttribute('ses_user_id'));
      $this->email_user = $user->getCorreo();
  }
  
}
